﻿using System;
using System.Collections.Generic;

using System.Text;

namespace WeFeTeLib.TYPO3
{
    class TYPO3Framework : Framework
    {
        public TYPO3Framework() 
            : base()
        {
            name = "TYPO3";
        }


        public override void setDefaultFiles()
        {
            frameworkFiles = new List<File>();

            frameworkFiles.Add(new File("t3lib/jsfunc.evalfield.js", "Evaluation of TYPO3", System.Net.HttpStatusCode.OK));
            frameworkFiles.Add(new File("misc/superadmin.php", 
                                    "Script secured by a die() function.", System.Net.HttpStatusCode.OK));
            
            frameworkFiles.Add(new File("clear.gif", "GIF89", System.Net.HttpStatusCode.OK));

            frameworkFiles.Add(new File("typo3/sysext/t3skin/icons/gfx/typo3logo.gif",
                                    "GIF89", System.Net.HttpStatusCode.OK));

            frameworkFiles.Add(new File("typo3/border.html", "Border between Navigation and List frame in TYPO3",
                System.Net.HttpStatusCode.OK));
        }

        public override void setDefaultCookies()
        {
            frameworkCookies = new List<Cookie>();

            frameworkCookies.Add(new Cookie("fe_typo_user", 10));
        }

        public override void setDefaultFolders()
        {
            frameworkFolders = new List<Folder>();

            frameworkFolders.Add(new Folder("fileadmin", System.Net.HttpStatusCode.MovedPermanently));
            frameworkFolders.Add(new Folder("typo3", System.Net.HttpStatusCode.MovedPermanently));
            frameworkFolders.Add(new Folder("typo3temp", System.Net.HttpStatusCode.MovedPermanently));
            frameworkFolders.Add(new Folder("uploads/", System.Net.HttpStatusCode.OK));
        }

        public override void setDefaultHeaders()
        {
        }
    }
}
